Layer by layer - Combining Monads

نویسندگان

  • Fredrik Dahlqvist
  • Louis Parlant
  • Alexandra Silva
چکیده

We develop a method to incrementally construct programming languages. Our approach is categorical: each layer of the language is described as a monad. Our method either (i) concretely builds a distributive law between two monads, i.e. layers of the language, which then provides a monad structure to the composition of layers, or (ii) identifies precisely the algebraic obstacles to the existence of a distributive law and gives a ‘best approximant’ language. The running example will involve three layers: a basic imperative language enriched first by adding non-determinism and then probabilistic choice. The first extension works seamlessly, but the second encounters an obstacle, which results in a ‘best approximant’ language structurally very similar to the probabilistic network specification language ProbNetKAT.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Monads and Modularity

This paper argues that the core of modularity problems is an understanding of how individual components of a large system interact with each other, and that this interaction can be described by a layer structure. We propose a uniform treatment of layers based upon the concept of a monad. The combination of different systems can be described by the coproduct of monads. Concretely, we give a cons...

متن کامل

Continuous Previsions

We define strong monads of continuous (lower, upper) previsions, and of forks, modeling both probabilistic and non-deterministic choice. This is an elegant alternative to recent proposals by Mislove, Tix, Keimel, and Plotkin. We show that our monads are sound and complete, in the sense that they model exactly the interaction between probabilistic and (demonic, angelic, chaotic) choice.

متن کامل

Compound Monads and Models of Computation

We consider the theory of “extended subsitutions” involving both angelic and demonic choice. For other related formal theories describing program semantics the implicit model of computation is based on a combination of monads by a distributive law. We show how the model of computation underlying extended subsitutions is based on a monad which, while not being a compound monad, has strong simila...

متن کامل

The effectiveness of multi-criteria analysis and GIS modeling to identify suitable places for rainwater extraction in Dehbar area of Torqabeh-Shandiz city

The purpose of this study is to accurately measure the watershed potential for constructing rainwater harvesting structures. To carry out this research, the DEM digital-elevation model layer was used to prepare slope, hydrological soil groups and land use maps in the Arc GIS 10.3 software. The drainage density map was prepared by combining the DEM layer, topographic map, drainage density and hy...

متن کامل

High-Performance Thin-Layer Chromatographic Fingerprints of Flavonoids and Phenol Carboxylic Acids for Standardization of Iranian Species of the Genus Crataegus L.

     Eight samples of flowering tops from six species of the genus Crataegus L., commonly called Hawthorn, from different geographic locations of Iran were standardized according to German Pharmacopoeia monograph on Crataegi folium cum flore (hawthorn leaf with flower) by high-performance thin-layer chromatograph-ic (HPTLC) fingerprinting combining with digital scanni...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • CoRR

دوره abs/1712.01113  شماره 

صفحات  -

تاریخ انتشار 2017